package com.haochang.chunkvod.model.cash;

import android.os.Parcel;
import android.os.Parcelable;

/**
 * 营业外商品信息
 */
public class GoodInfo implements Parcelable
{
	private String goodsId;
	private String goodsName;
	private int orderNum = 0;
	private int price;
	private String unit;
	private String materiel_code;//物料编码

    public GoodInfo() {
    }

    protected GoodInfo(Parcel in)
	{
		goodsId = in.readString();
		goodsName = in.readString();
		orderNum = in.readInt();
		price = in.readInt();
		unit = in.readString();
		materiel_code = in.readString();
	}

	public static final Creator<GoodInfo> CREATOR = new Creator<GoodInfo>()
	{
		@Override
		public GoodInfo createFromParcel(Parcel in)
		{
			return new GoodInfo(in);
		}

		@Override
		public GoodInfo[] newArray(int size)
		{
			return new GoodInfo[size];
		}
	};

	public String getGoodsId()
	{
		return goodsId;
	}

	public void setGoodsId(String goodsId)
	{
		this.goodsId = goodsId;
	}

	public String getGoodsName()
	{
		return goodsName;
	}

	public void setGoodsName(String goodsName)
	{
		this.goodsName = goodsName;
	}

	public int getOrderNum()
	{
		return orderNum;
	}

	public void setOrderNum(int orderNum)
	{
		this.orderNum = orderNum;
	}

	public int getPrice()
	{
		return price;
	}

	public void setPrice(int price)
	{
		this.price = price;
	}

	public String getUnit()
	{
		return unit;
	}

	public void setUnit(String unit)
	{
		this.unit = unit;
	}

	public String getMateriel_code()
	{
		return materiel_code;
	}

	public void setMateriel_code(String materiel_code)
	{
		this.materiel_code = materiel_code;
	}

	@Override
	public int describeContents()
	{
		return 0;
	}

	@Override
	public void writeToParcel(Parcel dest, int flags)
	{
		dest.writeString(goodsId);
		dest.writeString(goodsName);
		dest.writeInt(orderNum);
		dest.writeInt(price);
		dest.writeString(unit);
		dest.writeString(materiel_code);
	}
}
